package com.wing.product.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Schema(description="加工报工表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "warehouse_processing_report_detail")
public class WarehouseProcessingReportDetail extends BaseEntity<WarehouseProcessingReportDetail> {

    @TableField(value = "warehouse_product_id")
    @Schema(description="产品id")
    private Long warehouseProductId;

    @TableField(value = "warehouse_processing_report_id")
    @Schema(description="加工报告记录id")
    private Long warehouseProcessingReportId;

    @TableField(value = "customer_id")
    @Schema(description="客户id编号")
    private Long customerId;

    @TableField(value = "original_bundle_code")
    @Schema(description="原始捆包码")
    private String originalBundleCode;

    @TableField(value = "finished_product_bundle_code")
    @Schema(description="成品捆包码")
    private String finishedProductBundleCode;

    @TableField(value = "product_type")
    @Schema(description="产品类型1.成品，2.余料，3.废料")
    private Integer productType;

    @TableField(value = "product_spec_code")
    @Schema(description="规格码")
    private String productSpecCode;

    @TableField(value = "theoretical_quantity")
    @Schema(description="理论数量")
    private Integer theoreticalQuantity;

    @TableField(value = "actual_quantity")
    @Schema(description="实际数量")
    private Integer actualQuantity;

    @TableField(value = "theoretical_weight")
    @Schema(description="理论重量")
    private BigDecimal theoreticalWeight;

    @TableField(value = "actual_weight")
    @Schema(description="实际重量")
    private BigDecimal actualWeight;
}
